package com.dss.auto_deploy.mapper;

import com.dss.auto_deploy.domain.AdmDockerDeploy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dss.auto_deploy.dto.AllDockerInfoDto;
import com.dss.auto_deploy.vo.AllDockerInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @Description:docker部署项目模块配置Mapper
* @author dongshoushan
* @date 2022-09-22 14:38:57
*/
public interface AdmDockerDeployMapper extends BaseMapper<AdmDockerDeploy>{
    /**
     * 部署详情
     * @param dto
     * @return
     */
    List<AllDockerInfoVo> getAllDockerInfo(AllDockerInfoDto dto);

    /**
     * 查询要部署的节点
     * @param branch
     * @param name
     * @param url
     * @return
     */
    List<Long> selectToDeployDocker(@Param("branch") String branch, @Param("name") String name, @Param("url") String url);
    List<AdmDockerDeploy> selectAllDeployDocker(@Param("branch") String branch, @Param("name") String name, @Param("url") String url);

    String selectMaven(@Param("projectId") Long projectId, @Param("branch") String branch);

    List<AdmDockerDeploy> selectToBulid(@Param("namespaceId") Long namespaceId, @Param("projectId") Long projectId);
}
